From 2b9e3c9a481c5e7b56770df6b0bf1778d9d72550 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 12 Mar 2009 11:10:22 +0000 Subject: [PATCH] pygrub: Detect NetWare PV in pygrub Signed-off-by: John Levon --- tools/pygrub/src/pygrub | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index 98b4352b85..e3a540fa04 100644 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -583,6 +583,15 @@ def sniff_solaris(fs, cfg): return cfg +def sniff_netware(fs, cfg): + if not fs.file_exists("/nwserver/xnloader.sys"): + return cfg + + if not cfg["kernel"]: + cfg["kernel"] = "/nwserver/xnloader.sys" + + return cfg + if __name__ == "__main__": sel = None @@ -662,6 +671,9 @@ if __name__ == "__main__": chosencfg = sniff_solaris(fs, incfg) + if not chosencfg["kernel"]: + chosencfg = sniff_netware(fs, incfg) + if not chosencfg["kernel"]: chosencfg = run_grub(file, entry, fs, incfg["args"]) -- 2.30.2